package com.ktjy.order.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
        import com.ktjy.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktjy.order.mapper.OrderMapper;
import com.ktjy.order.domain.Order;
import com.ktjy.order.service.IOrderService;

/**
 * 订单信息Service业务层处理
 *
 * @author ktjy
 * @date 2025-03-17
 */
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order>
        implements IOrderService {
    @Autowired
    private OrderMapper orderMapper;

    /**
     * 查询订单信息列表
     *
     * @param order 订单信息
     * @return 订单信息
     */
    @Override
    public List<Order> selectOrderList(Order order)
    {
        return orderMapper.selectOrderList(order);
    }

    @Override
    public Order selectOrderListId(Long id) {
        return orderMapper.selectOrderListId(id);
    }

    @Override
    public List<Order> selectUserName() {
        return orderMapper.selectUserName();
    }

    @Override
    public List<Order> selectOrderDetailListId(Long id) {
        return orderMapper.selectOrderDetailListId(id);
    }
}